

#pragma once

#include <QWebEngineView>
#include "PdfJsBridge.h"

class BridgeObject : public QObject
{
	Q_OBJECT
public:
	explicit BridgeObject(PdfJsBridge* pBridge);

public slots:

	void jsInitialized();
	void jsReportDestinations(const QStringList& destinations);
	void jsChapterList(const QJsonValue& list);
	void jsChapterListLoaded(const QJsonValue& list);
	void jsCurrentPage(int nPage);
	void jsPageCount(int nPageCount);
	void jsPageScale(double fScale);
	void jsFindState(int nState);
	void jsLoaded();
	void jsClosed();

private:
	QPointer<PdfJsBridge> m_bridgePtr;
};
